import request from '@/router/axios';
// 获取列表
export const getList = (current, size, params) => {
  return request({
    url: '/api/hg-equipment/repair/analysis/patchList',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}

// 任务指派
export const patch = (data) => {
  return request({
    url: '/api/hg-equipment/repair/analysis/patch',
    method: 'post',
    data: data
  })
}

// 任务指派详情
export const detail = (id) => {
  return request({
    url: '/api/hg-equipment/repair/analysis/patch/info',
    method: 'get',
    params: {
      id
    }
  })
}

// 撤销
export const cancel = (id) => {
  return request({
    url: '/api/hg-equipment/repair/analysis/patch/cancel',
    method: 'get',
    params: {
      id
    }
  })
}